<script>
	export default {
		onLaunch() {
			this.$common.updateManager()
			let carlist = uni.getStorageSync('CARGOODLIST')||[]
			if (!carlist.length) {
				uni.setStorageSync('CARGOODLIST', [])
			}
			if(!this.TOKEN){
				uni.removeTabBarBadge({
					index: 3
				})
			}else{
				let num = this.$common.clacCount(carlist)
				if (num == 0) {
					uni.removeTabBarBadge({
						index: 3
					})
				} else {
					uni.setTabBarBadge({
						index: 3,
						text: num
					})
				}
			}
			
		},
	}
</script>
<style lang="scss">
	.loging,
	.loading {
		height: calc(100vh - 48px - var(--status-bar-height));
	}

	@import "uview-ui/index.scss";
	@import "@/static/icon.scss";
	@import url("./common/common");
	@import "@/common/theme-common.scss";
.spce-box{
		color: white;
		padding: 7rpx 10rpx;
		background: #48A147;
		border-radius: 22rpx;
	}
	/*每个页面公共css */
	/* 解决小程序和app滚动条的问题 */
	::-webkit-scrollbar {
		display: none;
		width: 0 !important;
		height: 0 !important;
		-webkit-appearance: none;
		background: transparent;
		color: transparent;
	}

	uni-sc roll-view .uni-scroll-view::-webkit-scrollbar {
		/* 隐藏滚动条，但依旧具备可以滚动的功能 */
		display: none;
		width: 0 !important;
		height: 0 !important;
		-webkit-appearance: none;
		background: transparent;
		color: transparent;
	}

	.share-btn {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		z-index: 10;
		background-color: transparent;
		box-shadow: none;
		opacity: 0;
	}

	.goodsLabel {
		font-size: 22rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		color: #48A147;
		line-height: 32rpx;
		box-sizing: border-box;
		padding: 4rpx 8rpx;
		background: #F0FFF0;
		border-radius: 16rpx;
		border: 2rpx solid #48A147;
		display: inline-block;
		margin-bottom: 5rpx;
	}
	.text-under{
		text-decoration: line-through;
	}

	/*每个页面公共css */
</style>